package com.ktgj.flight.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.flight.mapper.CabinGradeMapper;
import com.ktgj.flight.domain.CabinGrade;
import com.ktgj.flight.service.ICabinGradeService;

/**
 * 机票字典_舱位等级Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-11-05
 */
@Service
public class CabinGradeServiceImpl implements ICabinGradeService 
{
    @Autowired
    private CabinGradeMapper cabinGradeMapper;

    /**
     * 查询机票字典_舱位等级
     * 
     * @param cabinGradeId 机票字典_舱位等级ID
     * @return 机票字典_舱位等级
     */
    @Override
    public CabinGrade selectCabinGradeById(Long cabinGradeId)
    {
        return cabinGradeMapper.selectCabinGradeById(cabinGradeId);
    }

    /**
     * 查询机票字典_舱位等级列表
     * 
     * @param cabinGrade 机票字典_舱位等级
     * @return 机票字典_舱位等级
     */
    @Override
    public List<CabinGrade> selectCabinGradeList(CabinGrade cabinGrade)
    {
        return cabinGradeMapper.selectCabinGradeList(cabinGrade);
    }

    /**
     * 新增机票字典_舱位等级
     * 
     * @param cabinGrade 机票字典_舱位等级
     * @return 结果
     */
    @Override
    public int insertCabinGrade(CabinGrade cabinGrade)
    {
        return cabinGradeMapper.insertCabinGrade(cabinGrade);
    }

    /**
     * 修改机票字典_舱位等级
     * 
     * @param cabinGrade 机票字典_舱位等级
     * @return 结果
     */
    @Override
    public int updateCabinGrade(CabinGrade cabinGrade)
    {
        return cabinGradeMapper.updateCabinGrade(cabinGrade);
    }

    /**
     * 批量删除机票字典_舱位等级
     * 
     * @param cabinGradeIds 需要删除的机票字典_舱位等级ID
     * @return 结果
     */
    @Override
    public int deleteCabinGradeByIds(Long[] cabinGradeIds)
    {
        return cabinGradeMapper.deleteCabinGradeByIds(cabinGradeIds);
    }

    /**
     * 删除机票字典_舱位等级信息
     * 
     * @param cabinGradeId 机票字典_舱位等级ID
     * @return 结果
     */
    @Override
    public int deleteCabinGradeById(Long cabinGradeId)
    {
        return cabinGradeMapper.deleteCabinGradeById(cabinGradeId);
    }
}
